package com.jy.adscm.spss.job;

import com.jy.adscm.spss.bean.Base_commodityinfo;
import com.jy.adscm.spss.service.Base_commodityinfoService;
import com.jy.adscm.spss.service.Base_incomeexpenditureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.logging.Logger;

/**
 * Created by ZF on 2019/1/15 10:43
 */
@Component
public class PayJobs {


    private static final Logger logger = Logger.getLogger(PayJobs.class.toString());
//

//

    @Autowired
    Base_commodityinfoService base_commodityinfoService;
    @Autowired
    Base_incomeexpenditureService base_incomeexpenditureService;
    @Scheduled(cron = "0 0/30 * * * ? ")
    public void queryPayStatus() throws Exception{
        logger.info("执行修改采购销售收支表周定时任务---start");
        base_commodityinfoService.updateWeek();
        base_incomeexpenditureService.UpdateWeek();
        logger.info("执行修改采购销售收支表周定时任务---end");
    }

}

